package com.huizu.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.huizu.project.mapper.SysUserVoMapper;
import com.huizu.project.domain.SysUserVo;
import com.huizu.project.service.ISysUserVoService;

/**
 * 后台用户新信息Service业务层处理
 * 
 * @author zhangmx
 * @date 2024-06-17
 */
@Service
public class SysUserVoServiceImpl implements ISysUserVoService 
{
    @Autowired
    private SysUserVoMapper sysUserVoMapper;

    /**
     * 查询后台用户新信息
     * 
     * @param userId 后台用户新信息主键
     * @return 后台用户新信息
     */
    @Override
    public SysUserVo selectSysUserVoByUserId(Long userId)
    {
        return sysUserVoMapper.selectSysUserVoByUserId(userId);
    }

    /**
     * 查询后台用户新信息列表
     * 
     * @param sysUserVo 后台用户新信息
     * @return 后台用户新信息
     */
    @Override
    public List<SysUserVo> selectSysUserVoList(SysUserVo sysUserVo)
    {
        return sysUserVoMapper.selectSysUserVoList(sysUserVo);
    }

    /**
     * 新增后台用户新信息
     * 
     * @param sysUserVo 后台用户新信息
     * @return 结果
     */
    @Override
    public int insertSysUserVo(SysUserVo sysUserVo)
    {
        return sysUserVoMapper.insertSysUserVo(sysUserVo);
    }

    /**
     * 修改后台用户新信息
     * 
     * @param sysUserVo 后台用户新信息
     * @return 结果
     */
    @Override
    public int updateSysUserVo(SysUserVo sysUserVo)
    {
        return sysUserVoMapper.updateSysUserVo(sysUserVo);
    }

    /**
     * 批量删除后台用户新信息
     * 
     * @param userIds 需要删除的后台用户新信息主键
     * @return 结果
     */
    @Override
    public int deleteSysUserVoByUserIds(Long[] userIds)
    {
        return sysUserVoMapper.deleteSysUserVoByUserIds(userIds);
    }

    /**
     * 删除后台用户新信息信息
     * 
     * @param userId 后台用户新信息主键
     * @return 结果
     */
    @Override
    public int deleteSysUserVoByUserId(Long userId)
    {
        return sysUserVoMapper.deleteSysUserVoByUserId(userId);
    }
}
